package com.wh.beans.tags;

public enum HtmlControlType {
	radio(1, "radio"), select(2, "select"), checkbox(3, "checkbox"),menuComboTree(4,"menuComboTree"),enumSelect(5,"enumSelect")
	,deptComboTree(6,"deptComboTree"),roleCombobox(7,"roleCombobox"),tableCombobox(8,"tableCombobox"),teamCombobox(16,"teamCombobox");
	private int value;
	private String text;

	public int getValue() {
		for (HtmlControlType c : HtmlControlType.values()) {
			if (c.getText().equalsIgnoreCase(text)) {
				return c.value;
			}
		}
		return 0;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public String getText() {

		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	private HtmlControlType(int value, String text) {
		this.value = value;
		this.text = text;
	}

}
